const userModule = {
    namespaced:true,
    state() {
        return {
            userCounter: 10
        }
    },
    getters: {
        doubleUserCounter(state) {
            return state.userCounter * 3
        }
    },
    mutations: {
        increment(state) {
            state.userCounter++
        }
    },
    actions: {
        incrementActions(context) {
            context.commit("increment")
        }
    }
}

export default userModule